# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-beyond1lte
pkgdesc="Samsung Galaxy S10"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
	linux-samsung-beyond1lte
	mkbootimg
	postmarketos-base
	msm-fb-refresher
"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Firmware for Galaxy S10"
	depends="firmware-samsung-beyond1lte"
	mkdir "$subpkgdir"
}

sha512sums="
8913beded8a64191ca2f2244722bce32f67a34ce98aec820f663c3d1b81e1c0d29c1eb3d710b977e0d1cc12424333d72c0b4a400c5b75bda1dd435abe6f697fc  deviceinfo
03deb65563f4b4421491643854927e88b2d5880b8b19ee6baa4d3fa1ec3f7d7a1c2977fd2c3c41270254efea6fa0c5fdae0a382e7c427d5a3bf6fad34c25375e  initfs-hook.sh
"
